package cc.chengheng.entity;

import org.springframework.security.core.GrantedAuthority;

public class GrantedAuthorityImpl implements GrantedAuthority {

    private Integer id;
    private String role;
    private String roleDescription;


    public GrantedAuthorityImpl(String role) {
        this.role = role;
    }

    public GrantedAuthorityImpl(Integer id, String role, String roleDescription) {
        this.id = id;
        this.role = role;
        this.roleDescription = roleDescription;
    }

    @Override
    public String getAuthority() {
        return role;
    }
}
